import Http from '../modules/Http';

const API = {
	Login: data => Http.post('/api/user/login',data),
	BooksList: data => Http.post('/api/book/booksList',data),
	AddType: data => Http.post('/api/type/addType',data),
	TypesList: data => Http.post('/api/type/typesList',data),
	UpdateType: data => Http.post('/api/type/updateType',data),
	RemoveType: data => Http.post('/api/type/removeType',data),
	UsersList: data => Http.post('/api/user/usersList',data),
	RemoveUser: data => Http.post('/api/user/removeUser',data),
	AddUser: data => Http.post('/api/user/addUser',data),
	Repswd: data => Http.post('/api/user/repswd',data),
	UploadBook: data => Http.post('/api/book/upload',data),
	AddBook: data => Http.post('/api/book/addBook',data),
	RemoveBook: data => Http.post('/api/book/removeBook',data),
	Search: data => Http.post('/api/book/search',data),
	BeforePageBooks: data => Http.post('/api/book/beforePageBooks',data),
	IncreasePv: data => Http.post('/api/book/increasePv',data),
	IsExistsDirname: data => Http.post('/api/book/isExistsDirname',data)
}

export default API;